const webpack=require('webpack');
module.exports = {
  /*
  ** Headers of the page
  */
  head: {
    title: 'ta',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: 'Nuxt.js project' }
    ],
    link: [
      { rel: 'shortcut icon', type: 'image/png', href: '/logo.png' }
    ]
  },
  /*
  ** Customize the progress bar color
  */
  loading: { color: '#3B8070' },
  css:['bootstrap/dist/css/bootstrap.min.css','~/static/css/comment.css'],
  plugins: [
		  {
	       src:'~/plugins/i18n.js',
	       ssr:true
		   }

	],
  /*
  ** Build configuration
  */
  build: {
    /*
    ** Run ESLint on save
    */
//  extend (config, { isDev, isClient }) {
//    if (isDev && isClient) {
//      config.module.rules.push({
//        enforce: 'pre',
//        test: /\.(js|vue)$/,
//        loader: 'eslint-loader',
//        exclude: /(node_modules)/
//      })
//    }
//  }

    vendor:['axios','jquery','bootstrap','animejs'],
    plugins:[
      new webpack.ProvidePlugin({
      	$:'jquery',
      	jQuery:'jquery',
      	'window.jQuery':'jquery'
      })
    ]
  }


}

